<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>显示隐藏元素之display</title>
  <style>
    .peppa {
      /* 隐藏 */
      display: none;
      /* 显示：除了转换为块元素以外还有显示的属性 */
      /* display: block; */
      width: 200px;
      height: 200px;
      background-color: pink;

    }

    .george {
      width: 200px;
      height: 200px;
      background-color: skyblue;
    }
  </style>
</head>

<body>
  <div class="peppa">佩奇</div>
  <div class="george">乔治</div>
</body>

</html>